Recorder: Show details of crossfade nodes
authorMatthias Clasen <mclasen@redhat.com>
Thu, 28 Sep 2017 23:20:25 +0000 (19:20 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 28 Sep 2017 23:20:25 +0000 (19:20 -0400)
gtk/inspector/recorder.c

index e1f219ac0cabd826413ec2e40c1f9cbf7af04df2..d8f7bcac64e64c351c7164f94f35dc57e27fabdb 100644 (file)
@@ -393,6 +393,22 @@ populate_render_node_properties (GtkListStore  *store,
       }
       break;
 
+    case GSK_CROSS_FADE_NODE:
+      {
+        double progress = gsk_cross_fade_node_get_progress (node);
+        const char *text;
+
+        text = g_strdup_printf ("%.2f", progress);
+        gtk_list_store_insert_with_values (store, NULL, -1,
+                                           0, "Progress",
+                                           1, text,
+                                           2, FALSE,
+                                           3, NULL,
+                                           -1);
+        g_free (text);
+      }
+      break;
+
     default: ;
     }
 }